import request from '@/utils/request'

// 查询保本交易订单列表
export function listTKeepOrder(query) {
  return request({
    url: '/bussiness/TKeepOrder/list',
    method: 'get',
    params: query
  })
}

// 查询保本交易订单详细
export function getTKeepOrder(id) {
  return request({
    url: '/bussiness/TKeepOrder/' + id,
    method: 'get'
  })
}

// 新增保本交易订单
export function addTKeepOrder(data) {
  return request({
    url: '/bussiness/TKeepOrder',
    method: 'post',
    data: data
  })
}

// 修改保本交易订单
export function updateTKeepOrder(data) {
  return request({
    url: '/bussiness/TKeepOrder',
    method: 'put',
    data: data
  })
}

// 删除保本交易订单
export function delTKeepOrder(id) {
  return request({
    url: '/bussiness/TKeepOrder/' + id,
    method: 'delete'
  })
}
// 删除保本交易订单
export function delTKeepOrder(id) {
  return request({
    url: '/bussiness/TKeepOrder/' + id,
    method: 'delete'
  })
}
